package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.SignonCriteria;
import com.leo.ibatis.demo.domain.Signon;

public interface SignonDao {

	void insert(Signon signon) throws DataAccessException;

	int update(Signon signon) throws DataAccessException;

	int delete(String username) throws DataAccessException;

	Signon select(String username) throws DataAccessException;

	List<Signon> list(SignonCriteria signonCriteria) throws DataAccessException;
	
	List<Signon> listOnPage(SignonCriteria signonCriteria) throws DataAccessException;
	
	int count(SignonCriteria signonCriteria) throws DataAccessException;

}
